﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace testePrintForm
{
    public class tes
    {
        private Font mainTextFont = new Font("Times New Roman", 14);
        public void Paint(Graphics g)
        {
            g.PageUnit = GraphicsUnit.Point;
            g.DrawString("Simple Printing Sample",
                         this.mainTextFont,
                         Brushes.Black,
                         new Rectangle(10, 20, 180, 30));
            g.DrawRectangle(Pens.Blue,
                            new Rectangle(new Point(10, 100), new Size(100, 50)));
        }
    }
}

